package com.nuoniu.sibanyun.entity.finance;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.nuoniu.sibanyun.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * <p>
 * 规则凭证公式
 * </p>
 *
 * @author 小啊刚
 * @since 2022-05-06
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("fab_rule_voucher_set_formula")
@ApiModel(value="VRuleVoucherSetFormula对象", description="规则凭证公式")
public class VRuleVoucherSetFormula extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "明细id")
    @TableField("detail_id")
    private Integer detailId;

    @ApiModelProperty(value = "会计科目id")
    @TableField("accounting_id")
    private Integer accountingId;

    @ApiModelProperty(value = "会计科目名称")
    @TableField("accounting_name")
    private String accountingName;

    @ApiModelProperty(value = "会计科目编码")
    @TableField("accounting_code")
    private String accountingCode;

    @ApiModelProperty(value = "运算:1* 2/")
    @TableField("operation")
    private Integer operation;

    @ApiModelProperty(value = "运算符号:1+ 2-")
    @TableField("operation_symbol")
    private Integer operationSymbol;

    @ApiModelProperty(value = "数值")
    @TableField("number_value")
    private BigDecimal numberValue;

    @ApiModelProperty(value = "取数规则 1:余额 2:末级科目借方余额 3:末级科目贷方余额 4:本级科目借方余额 5:本级科目贷方余额 6:末级科目借方发生额 7:末级科目贷方发生额 8:找平")
    @TableField("access_rules")
    private Integer accessRules;


}
